import { Modal } from "antd";
import React from "react";
import { IPostData } from "@/app/PostContentView/page";
import { TVideoData } from "@/app/Course/page";
import Details from "../Details";
type TDetailsMadalProps = {
  open: boolean;
  setOpen: (v: boolean) => void;
  data?: IPostData;
  vedioData?: TVideoData;
  className?: string;
};
const DetailsMadal = (props: TDetailsMadalProps) => {
  const { open, setOpen, data, vedioData, className } = props;
  return (
    <div>
      <Modal
        wrapClassName={className}
        footer={null}
        open={open}
        onCancel={() => setOpen(false)}
        width={800}
       
      >
        <Details data={data} vedioData={vedioData}></Details>
      </Modal>
    </div>
  );
};
export default DetailsMadal;
